package com.fch.sdlibrary.mapper;

import com.fch.sdlibrary.entity.BookClazz;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @program: sdlibrarySpring
 * @description: 图书分类数据库接口
 * @CreatedBy: fch
 * @create: 2022-05-05 15:37
 **/
@Mapper
public interface BookClazzMapper {
    List<BookClazz> queryAllBookClazz();

    List<BookClazz> queryL1();

    List<BookClazz> queryL2(String bookCode);

    List<BookClazz> queryL3(String bookCode);

    BookClazz queryParent(BookClazz bookClazz);

    BookClazz queryBookClazzByCode(String bookClassCode);

    String queryMaxCodeL1();

    String queryMaxCodeL2(BookClazz bookClazz);

    int addBookClass(BookClazz bookClazz);

}
